/**
 * @用户信息模块
 */
const Router = require('koa-router');
const userRouter = new Router({ prefix: '/api' });
const { createUser } = require('../controller/user.controller');
const { verifyUser, handlePassword } = require('../middleware/user.middleware');

//注册用户 handlePassword
userRouter.post('/register', verifyUser, handlePassword, createUser)

module.exports = userRouter;